package com.外观模式;

public class Popcorn {

    //使用单例模式的饿汉式
    private static Popcorn popcorn=new Popcorn();

    public static Popcorn getInstance(){
        return popcorn;
    }

    public void on(){
        System.out.println("爆米花机器打开了..........");
    }

    public void off(){
        System.out.println("爆米花机器关闭了..........");
    }

    public void pop(){
        System.out.println("爆米花机正在出爆米花 ..........");
    }
}
